package com.alkaid.novel.mapper;

import com.alkaid.commons.entity.NovelDetails;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author Kylin
 */
@Mapper
public interface NovelDetailsMapper {

    /**
     * 查询相同Anime_id的视频
     *
     * @param novelId the novel id
     * @return the list
     */
    List<NovelDetails> findByNovelId(Integer novelId);

    /**
     * 查询与id拥有相同novel_id的小说
     *
     * @param id the id
     * @return the list
     */
    List<NovelDetails> findSameNovelIdById(Integer id);

    /**
     * 根据小说ID查询作者
     *
     * @param id the id
     * @return the list
     */
    List<String> findAuthors(Integer id);

    /**
     * 根据小说详情ID查询小说内容
     *
     * @param id the id
     * @return the content
     */
    String findSource(Long id);
}
